<html>
<head>
<title>倒计时</title>
<script src="../js/jquery-1.8.3.js" type="text/javascript"></script>
<script src="../js/jquery.btnclock.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<!-- 弃用
<div class="btnclock" data-clock-id = "001">发送</div><br /><br />
<script type="text/javascript">
	var btnClock = $.newBtnClock({
		"btnSelecter":'.btnclock',
		"timeCounter":10,
		'btnNormalText':'发送',
		"btnClockText":'还有{0}秒',
	});
	$('.btnclock').click(function(){
		if(!btnClock.isSendable){
			return false;
		}
		btnClock.startClock();
		$.post("htt://www.domain.com/member/passport/sendmailcode')}",{},function(data){
			if(data.status != 1){
				btnClock.reset();
			}
		},'json');
		return false;
	});
</script>
-->

<button class="btnclockn btn1" data-clock-id = "002">发送</button><br />
<br />
<button class="btnclockn btn2" data-clock-id = "003">发送</button><br />
<br />
<button class="btnclockn btn3" data-clock-id = "004">发送</button><br />
<br />
<script type="text/javascript">
	$('.btnclockn').bindBtnClock({
		"btnSelecter":'.btnclockn',
		"timeCounter":20,
		'btnNormalText':'发送',
		"btnClockText":'还有{0}秒',
		"callbackFunc":function(btnClock){
			$.post("{:U('member/passport/sendmailcode')}",{},function(data){
				if(data.status != 1){
					btnClock.reset();
				}
			},'json');
	}});
</script>
</body>
</html>
